package com.bf.electroplating.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 废气处理设施检测日志表
 * </p>
 *
 * @author gzd
 * @since 2025-08-22
 */
@Getter
@Setter
@TableName("waste_gas_monitoring_log")
@Schema( description = "废气处理设施检测日志表")
public class WasteGasMonitoringLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema( description = "ID")
    @TableId("ID")
    private String id;

    @TableField(fill = FieldFill.INSERT)
    private String parkId;

    @Schema( description = "监测记录ID")
    @TableField("MONITORING_ID")
    private String monitoringId;

    @Schema( description = "企业名称")
    @TableField("COMPANY_NAME")
    private String companyName;

    @Schema( description = "设备名称")
    @TableField("DEVICE_NAME")
    private String deviceName;

    @Schema( description = "mn码")
    @TableField("MN_CODE")
    private String mnCode;

    @Schema( description = "监测因子")
    @TableField("MONITORING_FACTOR")
    private String monitoringFactor;

    @Schema( description = "PH")
    @TableField("PH_VALUE")
    private BigDecimal phValue;

    @Schema( description = "ORP")
    @TableField("ORP_VALUE")
    private BigDecimal orpValue;

    @Schema( description = "监测时间")
    @TableField("MONITORING_TIME")
    private LocalDateTime monitoringTime;

    @Schema( description = "状态")
    @TableField("STATUS")
    private String status;

    @Schema( description = "日志类型（0:自动采集 1:手动录入 2:系统修改）")
    @TableField("LOG_TYPE")
    private String logType;

    @Schema( description = "日志记录时间")
    @TableField("LOG_TIME")
    private LocalDateTime logTime;

    @Schema(description = "公司id")
    @TableField("COMPANY_ID")
    private String companyId;

    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;
}
